<?php

namespace app\common\model\system;


use app\common\model\TimeModel;
use think\Model;
class SmsLogs extends TimeModel
{

    public static function onAfterInsert($data){


        //$self = new static();
        $article = self::withoutGlobalScope()->find($data->id);

        $article->withoutGlobalScope()->where('id',$data->id)->save(['app_id'=>self::get_appId()]);

    }
}